From: Florian Müllner Date: Wed, 11 May 2022 00:34:21 +0000 (+0200) Subject: status/volume: Hide sliders initially X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~461^2^2~356 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9400759f25f6493d8e0188271c2e3b98aaed9785;p=gnome-shell.git status/volume: Hide sliders initially We update the visibility on state or stream changes, but those changes may never happen if pipewire-pulse/pulseaudio isn't available (for example when running as root). Hiding the sliders is preferable in that case to showing non-working controls. Part-of: --- diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js index 7164e1054..f623ee680 100644 --- a/js/ui/status/volume.js +++ b/js/ui/status/volume.js @@ -34,6 +34,7 @@ var StreamSlider = class { this._control = control; this.item = new PopupMenu.PopupBaseMenuItem({ activate: false }); + this.item.hide(); this._inDrag = false; this._notifyVolumeChangeId = 0;